<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/js/commons.jspf" %>
<%@taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>表单模板管理</title>
</head>
<body>
 	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
		  <tr>
		    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
		      <tr>
		        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
		          <tr>
		            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
		              <tr>
		                <td width="6%" height="19" valign="bottom"><div align="center"><img src="${pageContext.request.contextPath }/images/tb.gif" width="14" height="14" /></div></td>
		                <td width="94%" valign="bottom"><span class="STYLE1">表单模板列表</span></td>
		              </tr>
		            </table></td>
		            <td><div align="right"><span class="STYLE1">
		              </span></div></td>
		          </tr>
		        </table></td>
		      </tr>
		    </table></td>
		  </tr>
		  <tr>
		        <td height="20" bgcolor="#FFFFFF" class="STYLE10" colspan="8"><div align="left">
					<a href="${pageContext.request.contextPath }/formTemplateAction_addUI.action">添加表单模板</a>
				</div></td>
		  </tr> 
		  <tr>
		    <td>
				<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" onmouseover="changeto()"  onmouseout="changeback()">
		      		<tr>
		        		<td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">模板名称</span></div></td>
		        		<td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">流程key</span></div></td>
						<td width="25%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">操作</span></div></td>
				  	</tr>
		      		<s:if test="#formTemplateList!=null && #formTemplateList.size()>0">
		      			<s:iterator value="#formTemplateList">
		      				<tr>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"><s:property value="name"/></div></td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"><s:property value="processDefinitionKey"/></div></td>
								<td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE21">
									<a href="${pageContext.request.contextPath }/formTemplateAction_delete?id=<s:property value='id'/>" >删除</a>
									<a href="${pageContext.request.contextPath }/formTemplateAction_editUI?id=<s:property value='id'/>" >编辑</a>
									<a href="${pageContext.request.contextPath }/formTemplateAction_download?id=<s:property value='id'/>" >下载</a>
								</td>
				    		</tr>
		      			</s:iterator>
		      		</s:if>
		    	</table>
			</td>
		  </tr>
	</table>
</body>
</html>